Platform Explorer / Nuxeo Platform LTS 2016 8.10

Contribution org.nuxeo.drive.actions--filters

This contribution is part of XML component org.nuxeo.drive.actions inside nuxeo-drive-jsf-8.10.jar /OSGI-INF/nuxeodrive-actions.xml

Extension Point

Extension point filters of component ActionService.

Contributed Items

  • <filter id="can_sync_current_doc">
          <rule grant="false">
            <type>Domain</type>
            <type>SectionRoot</type>
            <type>TemplateRoot</type>
            <type>WorkspaceRoot</type>
            <type>Forum</type>
            <type>Collections</type>
          </rule>
          <rule grant="true">
            <condition>#{canSynchronizeCurrentDocument}</condition>
          </rule>
        </filter>
  • <filter id="can_unsync_current_doc">
          <rule grant="true">
            <condition>#{canUnSynchronizeCurrentDocument}</condition>
          </rule>
        </filter>
  • <filter id="can_navigate_to_current_synchronization_root">
          <rule grant="true">
            <condition>#{canNavigateToCurrentSynchronizationRoot}
            </condition>
          </rule>
        </filter>
  • <filter id="can_drive_edit">
          <rule grant="true">
            <condition>#{nuxeoDriveActions.canEditDocument(document)}</condition>
          </rule>
          <rule grant="false">
            <facet>Collection</facet>
          </rule>
        </filter>
  • <filter id="has_one_auth_token">
          <rule grant="true">
            <condition>#{nuxeoDriveActions.hasOneDriveToken(currentUser)}</condition>
          </rule>
        </filter>
  • <filter id="has_no_auth_token">
          <rule grant="false">
            <condition>#{nuxeoDriveActions.hasOneDriveToken(currentUser)}</condition>
          </rule>
        </filter>

XML Source

<extension point="filters" target="org.nuxeo.ecm.platform.actions.ActionService">

    <filter id="can_sync_current_doc">
      <rule grant="false">
        <type>Domain</type>
        <type>SectionRoot</type>
        <type>TemplateRoot</type>
        <type>WorkspaceRoot</type>
        <type>Forum</type>
        <type>Collections</type>
      </rule>
      <rule grant="true">
        <condition>#{canSynchronizeCurrentDocument}</condition>
      </rule>
    </filter>

    <filter id="can_unsync_current_doc">
      <rule grant="true">
        <condition>#{canUnSynchronizeCurrentDocument}</condition>
      </rule>
    </filter>

    <filter id="can_navigate_to_current_synchronization_root">
      <rule grant="true">
        <condition>#{canNavigateToCurrentSynchronizationRoot}
        </condition>
      </rule>
    </filter>

    <filter id="can_drive_edit">
      <rule grant="true">
        <condition>#{nuxeoDriveActions.canEditDocument(document)}</condition>
      </rule>
      <rule grant="false">
        <facet>Collection</facet>
      </rule>
    </filter>

    <filter id="has_one_auth_token">
      <rule grant="true">
        <condition>#{nuxeoDriveActions.hasOneDriveToken(currentUser)}</condition>
      </rule>
    </filter>

    <filter id="has_no_auth_token">
      <rule grant="false">
        <condition>#{nuxeoDriveActions.hasOneDriveToken(currentUser)}</condition>
      </rule>
    </filter>

  </extension>